/**
 * 入职
 */
import { $axios } from "../request.js";
import prefix from "../base.js";

export default {
  //查询待入职登记明细
  inductionInfo(data) {
    return $axios(`${prefix.riders}/inductionInfo`, data);
  },
  //入职登记
  inductionRecord(data) {
    return $axios(`${prefix.riders}/inductionRecord`, data, "PUT");
  },
  //预审登记
  prepareExamineRecord(data) {
    return $axios(`${prefix.riders}/prepareExamineRecord`, data, "PUT");
  },
  //查询入职流程状态
  queryInductionFlowStatus(data) {
    return $axios(`${prefix.riders}/queryInductionFlowStatus`, data);
  },
  //骑手注册
  register(data) {
    return $axios(`${prefix.riders}/register`, data, "PUT");
  },
  otherStatus(data) {
    return $axios(`${prefix.riders}/updateOtherStatus`, data, "PUT");
  },
  //协议签署状态
  signAgreeStatus(data) {
    return $axios(`${prefix.riders}/signAgreement`, data, "POST");
  },
  //入职
  webaccessInduction(data) {
    return $axios(`${prefix.riders}/webaccessInduction?inductionId=${data.inductionId}`, null, "GET");
  },
  //加载签名pdf
  getLoadPdf(data){
    return $axios(`${prefix.riders}/loadSignPDF`, data, "GET");
  },
  //重新生成合同
  regenerateData(data){
    return $axios(`${prefix.riders}/regenerate`, data, "POST");
  },
  //获取注册的数据
  registerInit(data){
    return $axios(`${prefix.riders}/registerInit`, data, "GET");
  },
    addBgCheck(data){
        return $axios(`${prefix.riders}/addBgCheck`, data, "PUT");
    },
    //加载鼓励政策pdf
    getEncouragePdf(data){
        return $axios(`${prefix.riders}/encourage_pdf`, data, "GET");
    },
    // 获取补充资料
    getAdditionalMaterial(){
        return $axios(`${prefix.riders}/additional_material`, null, "GET");
    },
    // 上传补充资料
    submitAdditionalMaterial(data){
        return $axios(`${prefix.riders}/additional_material`, data, "POST");
    },
    // 查询入职状态
    getInduction(){
        return $axios(`${prefix.riders}`,null, "GET");
    },
    // 提交离职申请
    resign(data){
        return $axios(`${prefix.riders}/resign`,data, "POST");
    },
    // 提交弃保申请
    insureCancel(data){
      return $axios(`${prefix.riders}/insure_cancel`, data, 'POST')
    },
    // 获取复试确认书
    getSecInterview(data){
        return $axios(`${prefix.riders}/sec_interview`, data, 'POST')
    },
    // 刷新税务信息
    refreshTaxInfo(data){
      return $axios(`${prefix.riders}/refresh_tax`, data, 'POST')
    },
    // 查询字典
    getDictList(data){
      return $axios(`${prefix.riders}/dict`, data, 'GET')
    },
  // 获取协议路径信息
  getWxStaffInfo(data){
      return $axios(`${prefix.agreement}/wxseparateAgreement/getWxStaffInfo?oid=${data.oid}`, null, 'GET')
    },
  // 功能描述 保存签字图片路径
  updateSignurl(data){
    return $axios(`${prefix.agreement}/wxseparateAgreement/updateSignurl`, data, 'GET')
  },
  // 功能描述 签字生成pdf
  startSingPdf(data){
    return $axios(`${prefix.agreement}/wxseparateAgreement/startSingPdf?oid=${data.oid}`, null, 'GET')
  },
  //加载签名pdf
  getloadSignPDF(data){
    return $axios(`${prefix.renewal}/loadSignPDF?inductionId=${data.inductionId}`, null, "GET");
  },
  //签名
  renewalRegenerate(data){
    return $axios(`${prefix.renewal}/regenerate?inductionId=${data.inductionId}`, null, "GET");
  },
  //上传签名
  signAgreement(data){
    return $axios(`${prefix.renewal}/signAgreement`, data, "POST");
  },
};
